import request from '../request'

const Api = {
  page: '/api/sys/lic/page',
  infoList: '/api/sys/lic/infoList',
  save: '/api/sys/lic/save',
  Update: '/api/sys/lic/Update',
  remove: '/api/sys/lic/remove',
  removeBatch: '/api/sys/lic/removeBatch',
}

/** 实训室列表 */
export const page = data => {
  return request.request({
    url: Api.page,
    params: data,
    method: 'GET'
  })
}
/** 实训室列表 */
export const infoList = data => {
  return request.request({
    url: Api.infoList,
    params: data,
    method: 'GET'
  })
}
/** 新增实训室 */
export const save = data => {
  return request.request({
    url: Api.save,
    data: data,
    method: 'POST'
  })
}
/** 修改实训室 */
export const Update = data => {
  return request.request({
    url: Api.Update,
    data: data,
    method: 'POST'
  })
}
/** 删除配置 */
export const remove = data => {
  return request.request({
    url: Api.remove,
    params: data,
    method: 'DELETE'
  })
}

/** 批量删除 */
export const removeBatch = data => {
  return request.request({
    url: Api.removeBatch,
    params: data,
    method: 'DELETE'
  })
}
